package 数学问题;

import java.math.BigDecimal;
import java.util.Scanner;

public class 小数第n位 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        int n = scanner.nextInt();
        BigDecimal a1 = new BigDecimal(a);
        BigDecimal b1 = new BigDecimal(b);
        BigDecimal re = BigDecimal.ZERO;
//        System.out.println(123456);
        re = a1.divide(b1,3,BigDecimal.ROUND_HALF_UP);
//        System.out.println(re);

        String s = String.valueOf(re);
        while (s.length()<n+4){
            s = s+"0";
        }

        String s1 = s.substring(n+1,n+4);

        while (s1.length()<3){
            s1 = s1 + "0";
        }
        System.out.println(s1);
    }
}
